package com.luntan.util.web;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

/**
 *
 * 日志拦截器
 */
public class LogInterceptor extends AbstractInterceptor {

    @Override
    public String intercept(ActionInvocation ai) throws Exception {

//        HttpServletRequest request = ServletActionContext.getRequest();
//        HelloAction action =(HelloAction) ai.getAction();
//        action.setPassword(request.getParameter("password"));
//       
//        ActionContext context = ai.getInvocationContext();
//        Map<String, Object> session = context.getSession();

        return ai.invoke();



    }

}
